package com.jwinni.IO.DemoOutput;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

public class demoOutputStream {
    public static void main(String[] args) throws IOException {
        //文件
        //创建目录对象
        File file;
        FileOutputStream out=new FileOutputStream("static/a.txt",true);
        for (int i=0;i<10;i++) {
            out.write("sdfasdf".getBytes());
            out.write("\r\n".getBytes());
        }
        out.close();
        System.out.println("----------------");
    }
}
